import turtle
dataList = [
  {"pos": [0, 0], "color": "blue"},
  {"pos": [60, 0], "color": "black"},
  {"pos": [120, 0], "color": "red"},
  {"pos": [30, -50], "color": "yellow"},
  {"pos": [90, -50], "color": "green"}
]

turtle.setup(0.5, 0.5)
screen = turtle.Screen()
screen.title("画五环")
screen.bgcolor("white")

# 设置画笔
pen = turtle.Turtle()
pen.speed(3)  # 设置绘图速度，1 慢到 10 快，0 是最快

for item in dataList:
    pen.color(item["color"])
    pen.penup()  # 提起画笔，移动时不绘制
    pen.goto(item["pos"][0], item["pos"][1])  # 移动到指定位置
    pen.pendown()  # 放下画笔，准备绘制
    pen.circle(30)
# 完成后隐藏画笔
pen.hideturtle()

# 等待用户关闭窗口
turtle.done()